package treeviews.fileexplore3;

import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.stage.DirectoryChooser;

public class FileExploreMainController implements Initializable {
	@FXML
	private TextField rootDirText;
	
	@FXML
	private Button btnDir;
	
	@FXML
	private Button btnDesplay;

	@Override
	public void initialize(URL location, ResourceBundle resources) {
		// TODO Auto-generated method stub
		
	}
	
	@FXML
	private void dir() {
		final DirectoryChooser chooser = new DirectoryChooser();
        chooser.setTitle("select Directory");
        chooser.setTitle("Select Root Directory");
        File selDir = chooser.showDialog(FileExploreMain3.stage);
            if (selDir != null) {
                rootDirText.setText(selDir.getAbsolutePath());
            }
       
	}
	
	@FXML
	private void desplay() {
		
	}

}
